Skip to content

Change default header representation to bytes. - #502

Merged
alexwlchan merged 3 commits into
masterfrom
change-default-header-representation
Mar 24, 2017
Merged

alexwlchan merged 3 commits into
masterfrom
change-default-header-representation

Conversation

@Lukasa

@Lukasa Lukasa commented Mar 24, 2017

Copy link
Copy Markdown
Member

Resolves #154.

After this, we're very close to being ready to go for 3.0.

Lukasa added 3 commits March 24, 2017 08:37
This change kinda semi-randomly swaps some tests to use the new default
behaviour, and has some opt-in to the old behaviour, to ensure that both
continue to work

@alexwlchan alexwlchan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

That was surprisingly un-horrible a patch, given that encodings are usually a bit of a quagmire. 😄

@alexwlchan
alexwlchan merged commit 51ec572 into master Mar 24, 2017
@alexwlchan
alexwlchan deleted the change-default-header-representation branch March 24, 2017 09:50
@Lukasa

Lukasa commented Mar 24, 2017

Copy link
Copy Markdown
Member Author

Yeah, handily when we had to solve this the first time (to allow bytes through) almost all the problems went away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider having received headers be bytes, not unicode strings.

2 participants